<?php if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
mm_showMyFileName(__FILE__);
?>
<style>
<!--
#vmMainPage td { 
    background: none !important;
}

#vmMainPage td#td_related_products table td{ 
    /*background:transparent url(/templates/izilife/images/bg-product.png) no-repeat scroll 0 0 !important;*/
    height:38px;
    width:138px;
}

#vmMainPage td#td_related_products table td img { 
  height:140px;
  width:134px;
}

#vmMainPage hr { 
    border: none;
    border-bottom: 1px dashed #000000;
    margin:3px 0;
}

h1 {
    font-size:14px;
    color: #359803;
    margin-top: 0;
    margin-bottom: 5px;
}

table td span.product_detail_info {
   
}
#vmMainPage .buttons_heading {
  float:right;
  padding-left:0;
}

.vmCartContainer {
    background: url(/templates/izilife/images/bg-add-cart-detail.png) no-repeat 50% 0;
    height: 58px;
    border:none;
    width: 100%;
    text-align: center;
    padding-top:13px;
}
.vmCartContainer .addtocart_button {
    margin:0 0 0 5px;
    background: #70b933;
    color: #ffffff;
    width: 60px;
}

#back-detail {
     background: url(/templates/izilife/images/back-detail.png) no-repeat;
     height: 38px;
     width: 137px;
     float: right;
     border: none;
     cursor:pointer;
}
-->
</style>
<table border="0" style="width: 100%;">
  <tbody>
    <tr>
    <?php  if( $this->get_cfg('showManufacturerLink') ) { $rowspan = 5; } else { $rowspan = 3; } ?>
      <td width="33%" rowspan="<?php echo $rowspan; ?>" valign="top">
        <?php echo $product_image ?><br/><br/><?php echo $this->vmlistAdditionalImages( $product_id, $images ) ?></td>
    </tr>
    
    <tr>
        
      <td rowspan="1" colspan="2" valign="top"> 
      
      <h1><?php echo $product_name ?> <?php echo $edit_link ?></h1>
      <hr/>
      <span class="product_detail_info"> <b>Mã SP: </b> <?php echo $product_sku; ?></span>
      <hr/>
      <span class="product_detail_info"> <b>Size: </b><?php echo $product_dienap; ?></span>
      <hr/>
      <?php 
      if( $this->get_cfg( 'showAvailability' )) {
          echo $product_availability; 
      }
      ?>
      <hr/>
      <span class="product_detail_info"><b>Giá bán: </b><b style="color: red;"><?php echo $product_price ?></b></span>
      <hr/>
      <!-- AddThis Button BEGIN -->
      <div class="addthis_toolbox addthis_default_style addthis_16x16_style" style="margin: 20px 0;">
      <span class="" style="float: left; margin-right: 60px;"><b>Chia sẻ: </b></span>
      <a class="addthis_button_compact"></a> 
        <span class="" style="float: left; ">
          Share |
          <?php echo $buttons_header // The PDF, Email and Print buttons ?>
        </span>
      <a class="addthis_button_preferred_1"></a>
      <a class="addthis_button_preferred_2"></a>
      
      </div>
      <script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script>
      <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=qnoithat"></script>
      <!-- AddThis Button END --> 
      <hr/>
      <br /><?php echo $addtocart ?><br />
      <span style="font-weight:bold;">Hotline: </span> 0989.407.722 <br />
      
      <br />
        <button onclick="location.href='/index.php'" 
        id="back-detail"></button>
      <br />
      </td>
    </tr>
   </table>
   
   <table border="0" style="width: 100%;">
    <tr>
      <td rowspan="1" colspan="4" style="border: 1px solid #cecece; padding-right: 15px;">
        <h1>CHI TIẾT SẢN PHẨM: </h1>
        <hr />
        <?php echo $product_description ?><br/>
      </td>
    </tr>
    <tr>
      <td colspan="3" style="padding-right: 5px;" id="td_related_products">
      <hr />
        <?php echo $related_products ?><br />
        <hr />
       </td>
    </tr>
    <tr>
      <td colspan="3"><?php echo $product_type ?></td>
    </tr>
    <?php if( $this->get_cfg('showVendorLink')) { ?>
        <tr>
          <td colspan="3"><div style="text-align: center;"><?php echo $vendor_link ?><br /></div><br /></td>
        </tr>
    <?php  } ?>
  </tbody>
</table>

